home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpcom / nsIAtomService.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  118 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAtomService.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAtomService_h__
  6. #define __gen_nsIAtomService_h__
  7.  
  8.  
  9. #ifndef __gen_nsIAtom_h__
  10. #include "nsIAtom.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. #define NS_ATOMSERVICE_CID \
  18. { /* ed3db3fc-0168-4cab-8818-98f5475a490c */ \
  19.     0xed3db3fc,                              \
  20.     0x0168,                                  \
  21.     0x4cab,                                  \
  22.     {0x88, 0x18, 0x98, 0xf5, 0x47, 0x5a, 0x49, 0x0c} }
  23. #define NS_ATOMSERVICE_CONTRACTID "@mozilla.org/atom-service;1"
  24. #define NS_ATOMSERVICE_CLASSNAME "Atom Service"
  25.  
  26. /* starting interface:    nsIAtomService */
  27. #define NS_IATOMSERVICE_IID_STR "e5d0d92b-ea45-4622-ab48-302baf2094ee"
  28.  
  29. #define NS_IATOMSERVICE_IID \
  30.   {0xe5d0d92b, 0xea45, 0x4622, \
  31.     { 0xab, 0x48, 0x30, 0x2b, 0xaf, 0x20, 0x94, 0xee }}
  32.  
  33. class NS_NO_VTABLE nsIAtomService : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IATOMSERVICE_IID)
  37.  
  38.   /**
  39.    * Version of NS_NewAtom that doesn't require linking against the
  40.    * XPCOM library.  See nsIAtom.idl.
  41.    */
  42.   /* nsIAtom getAtom (in wstring value); */
  43.   NS_IMETHOD GetAtom(const PRUnichar *value, nsIAtom **_retval) = 0;
  44.  
  45.   /**
  46.    * Version of NS_NewPermanentAtom that doesn't require linking against
  47.    * the XPCOM library.  See nsIAtom.idl.
  48.    */
  49.   /* nsIAtom getPermanentAtom (in wstring value); */
  50.   NS_IMETHOD GetPermanentAtom(const PRUnichar *value, nsIAtom **_retval) = 0;
  51.  
  52. };
  53.  
  54. /* Use this macro when declaring classes that implement this interface. */
  55. #define NS_DECL_NSIATOMSERVICE \
  56.   NS_IMETHOD GetAtom(const PRUnichar *value, nsIAtom **_retval); \
  57.   NS_IMETHOD GetPermanentAtom(const PRUnichar *value, nsIAtom **_retval); 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_NSIATOMSERVICE(_to) \
  61.   NS_IMETHOD GetAtom(const PRUnichar *value, nsIAtom **_retval) { return _to GetAtom(value, _retval); } \
  62.   NS_IMETHOD GetPermanentAtom(const PRUnichar *value, nsIAtom **_retval) { return _to GetPermanentAtom(value, _retval); } 
  63.  
  64. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  65. #define NS_FORWARD_SAFE_NSIATOMSERVICE(_to) \
  66.   NS_IMETHOD GetAtom(const PRUnichar *value, nsIAtom **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAtom(value, _retval); } \
  67.   NS_IMETHOD GetPermanentAtom(const PRUnichar *value, nsIAtom **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPermanentAtom(value, _retval); } 
  68.  
  69. #if 0
  70. /* Use the code below as a template for the implementation class for this interface. */
  71.  
  72. /* Header file */
  73. class nsAtomService : public nsIAtomService
  74. {
  75. public:
  76.   NS_DECL_ISUPPORTS
  77.   NS_DECL_NSIATOMSERVICE
  78.  
  79.   nsAtomService();
  80.  
  81. private:
  82.   ~nsAtomService();
  83.  
  84. protected:
  85.   /* additional members */
  86. };
  87.  
  88. /* Implementation file */
  89. NS_IMPL_ISUPPORTS1(nsAtomService, nsIAtomService)
  90.  
  91. nsAtomService::nsAtomService()
  92. {
  93.   /* member initializers and constructor code */
  94. }
  95.  
  96. nsAtomService::~nsAtomService()
  97. {
  98.   /* destructor code */
  99. }
  100.  
  101. /* nsIAtom getAtom (in wstring value); */
  102. NS_IMETHODIMP nsAtomService::GetAtom(const PRUnichar *value, nsIAtom **_retval)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* nsIAtom getPermanentAtom (in wstring value); */
  108. NS_IMETHODIMP nsAtomService::GetPermanentAtom(const PRUnichar *value, nsIAtom **_retval)
  109. {
  110.     return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112.  
  113. /* End of implementation class template. */
  114. #endif
  115.  
  116.  
  117. #endif /* __gen_nsIAtomService_h__ */
  118.